package com.shumm.mapper;

import com.shumm.po.Tcmrelation;
import com.shumm.vo.TcmAndTcmrVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shumm
 * @Description
 * @create 2023-11-28 15:21
 */
@Mapper
public interface TcmrelationMapper {
    int add(@Param("tcmr") Tcmrelation tcmr);

    int delete(@Param("id") int id);

    int update(@Param("tcmr") Tcmrelation tcmr);

    Tcmrelation selectById(@Param("id") int id);

    List<TcmAndTcmrVO> listWithTcmName();

    List<Tcmrelation> selectByTcmId(@Param("id") int id);

    List<TcmAndTcmrVO> selectByCondition(@Param("name") String name, @Param("chuchu") String chuchu, @Param("content") String content);

    List<TcmAndTcmrVO> selectByContent(@Param("content") String content);

    List<TcmAndTcmrVO> contentList();

    int isExistedById(@Param("id") int id);
}
